package com.yswy.backstage.controller;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.yswy.backstage.annotation.NotAuth;
import com.yswy.backstage.service.EnumsConfigService;
import com.yswy.backstage.service.SoftnessService;
import com.yswy.common.enums.base.TypeEnumDto;
import com.yswy.domain.entity.Softness;
import com.yswy.domain.vo.dto.BaseFilter;
import com.yswy.domain.vo.gld.addOrUpate.SoftnessAddOrUpdate;
import com.yswy.domain.vo.gld.addOrUpate.base.BaseReqVO;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.*;

import javax.servlet.http.HttpServletRequest;
import java.util.List;
import java.util.Map;


@RestController
@RequestMapping("/enum")
@Api(tags = "枚举获取")
public class EnumConfigController {
    @Autowired
    private EnumsConfigService enumsConfigService;

    @NotAuth
    @GetMapping("/tfPlatformEnums")
    @ApiOperation(value = "媒体平台枚举")
    public List<TypeEnumDto> tfPlatformEnums() {
        return enumsConfigService.tfPlatformEnums();
    }
    @NotAuth
    @GetMapping("/xtPlatformEnums")
    @ApiOperation(value = "获取操作系统枚举")
    public List<TypeEnumDto> xtPlatformEnums() {
        return enumsConfigService.xtPlatformEnums();
    }

    @NotAuth
    @GetMapping("/triggerNodeEnums")
    @ApiOperation(value = "触发节点枚举")
    public List<TypeEnumDto> triggerNodeEnums() {
        return enumsConfigService.triggerNodeEnums();
    }



}
